﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Calculator
{
    class Program
    {
        static void Main(string[] args)
        {
            int num1 = 0;
            int num2 = 0;

            Console.WriteLine("This is a calculator!");     
            Console.Write("Please input the num1:");            //提示用户输入两个参数值
            num1 = Convert.ToInt32(Console.ReadLine());
            Console.Write("Please input the num2:");
            num2 = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Choose an option from the following list:");
            Console.WriteLine("\t+  (Add)");                     //提示用户选择计算种类
            Console.WriteLine("\t-  (Subtract)");
            Console.WriteLine("\t*  (Multiply)");
            Console.WriteLine("\t/  (Divide)");

            switch (Console.ReadLine())
            {
                case "+":
                    Console.WriteLine($"Result:{num1 + num2}");
                    break;
                case "-":
                    Console.WriteLine($"Result:{num1 - num2}");
                    break;
                case "*":
                    Console.WriteLine($"Result:{num1 * num2}");
                    break;
                case "/":
                    Console.WriteLine($"Result:{num1 / num2}");
                    break;
                default:
                    Console.WriteLine("Your option is not in the list!");
                    break;
            }

            Console.ReadKey();
        }
    }
}
